﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;
namespace SQT.tracnghiem.Ajax.ASP.Lesson
{
    public partial class edit_Reading_non_upload : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string id = Request.Form["id"];
            string content = Request.Form["content"];
            int lesson = int.Parse(Request.Form["lesson"]);
            if (id.Trim() == "")
            {
                new TblLessonReadingController().Insert(lesson, content, null, true);
            }
            else
                new TblLessonReadingController().Update(int.Parse(id.Trim()), null, content, null, true);
        }
    }
}